public class Schedule {
	private ClockTime leaves;
	private ClockTime arrives;

	public Schedule(ClockTime leaves, ClockTime arrives) {
		this.leaves = leaves;
		this.arrives = arrives;

	}

	public boolean TGTBD(ClockTime that) {
		return this.leaves.equals(that);

	}

	public int TGM() {
		int a = this.arrives.getHour() - this.leaves.getHour();
		int b = this.arrives.getMinutes() - this.leaves.getMinutes();
		return Math.abs(a * 60 + b);
	}

	public ClockTime getLeaves() {
		return leaves;
	}

	public void setLeaves(ClockTime leaves) {
		this.leaves = leaves;
	}

	public ClockTime getArrives() {
		return arrives;
	}

	public void setArrives(ClockTime arrives) {
		this.arrives = arrives;

	}

}
